#!/bin/bash

BASE_PATH=$(cd `dirname $0`;pwd)
echo "BASE_PATH is $BASE_PATH...."

# update whole directory...
cd $BASE_PATH/..
# svn up

BASE_BIN=$BASE_PATH"/bin"
export PATH=$PATH:$BASE_BIN
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BASE_BIN
chmod -R a+x $BASE_BIN

#echo  $PATH

echo "genproto.py..."
python $BASE_PATH/../shell/proto.py

echo "gen finish, you can commit it....now"

